import request from '@/utils/request'

//  登录 
export const login = (data) => {
    return request({
        url: '/user/login',
        headers: {
            isToken: false,
        },
        method: 'post',
        data: data
    })
} 

// 获取用户信息
export const getUserInfo = () => {
    return request({
        url: '/user/getUserInfo',
        method: 'get',
    })
} 